<template>
    <div class="recommend">
      <div v-for="item in recommend" :key="item.title" class="recommend-item">
        <a :href="item.link">
          <img :src="item.image" alt="">
        </a>
        <div>{{item.title}}</div>
      </div>
    </div>
</template>

<script>
export default {
  name: 'RecommendView',
  props: {
    recommend: {
      type: Array,
      default () {
        return []
      }
    }
  }
}
</script>

<style scoped lang="scss">.recommend{
  display: flex;
  padding: 10px 0px 20px 0px;
  border-bottom: 8px solid #eee;
  text-align: center;
  font-size: 12px;
  .recommend-item{
    flex: 1;
    img{
      width: 68px;
      height: 68px;
      margin-bottom: 5px;
    }
  }
}
</style>
